import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var JmtgTcl8ComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(JmtgTcl8ComponentViewmodelForm, _super);
    function JmtgTcl8ComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantCode',
            name: "{{merchantCode_3ca385f8_rzi8}}",
            binding: 'merchantCode',
            updateOn: 'blur',
            defaultI18nValue: '参与商户编号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], JmtgTcl8ComponentViewmodelForm.prototype, "merchantCode", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantName',
            name: "{{merchantName_718e88bb_e3c8}}",
            binding: 'merchantName',
            updateOn: 'blur',
            defaultI18nValue: '参与商户名称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], JmtgTcl8ComponentViewmodelForm.prototype, "merchantName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'adminstrator',
            name: "{{adminstrator_f3478ce9_56hl}}",
            binding: 'adminstrator',
            updateOn: 'blur',
            defaultI18nValue: '商户管理员',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], JmtgTcl8ComponentViewmodelForm.prototype, "adminstrator", void 0);
    JmtgTcl8ComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '加盟推广',
            enableValidate: true
        }),
        Injectable()
    ], JmtgTcl8ComponentViewmodelForm);
    return JmtgTcl8ComponentViewmodelForm;
}(Form));
export { JmtgTcl8ComponentViewmodelForm };
